package com.ruanyuan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruanyuan.dao.UserDao;
import com.ruanyuan.pojo.User;
import com.ruanyuan.service.UserService;

/**
 * 用户业务实现类
 * 
 * @author zbp
 *
 */
@Service
public class UserServiceImpl implements UserService {
	// 注入用户接口类
	@Autowired
	private UserDao userDao;

	/**
	 * 用户登录方法
	 */
	@Override
	public User getLogin(User user) {
		// TODO Auto-generated method stub
		return userDao.getLogin(user);
	}

	/**
	 * 用户注册
	 */
	@Override
	public int addUser(User user) {
		// TODO Auto-generated method stub
		return userDao.addUser(user);
	}

}
